package edu.hawaii.duedates.libraries;

import com.meterware.httpunit.WebConversation;
import edu.hawaii.duedates.results.ResultsList;

/**
 * An interface for classes representing libraries.
 * 
 * @author Arthur Shum and Erin Kim.
 * 
 */
public interface Library {
  
  /**
   * Attempts to login to the library system.
   * 
   * @return The WebConversation instance after a successful login.
   * @throws Exception If an error occurs while logging in.
   */
  public WebConversation login() throws Exception;

  /**
   * Retrieves information about items checked out from the library by the logged-in patron, and 
   * stores this information in a List of BorrowedItems.
   * 
   * @return A List of BorrowedItems, which hold information about checked-out items.
   * @throws Exception If an error occurs while retrieving information.
   */
  public ResultsList getInfo() throws Exception;
  // public String getInfo() throws Exception;


}
